<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>未来商城后台管理系统-首页</title>
    <link rel="stylesheet" href="/future/util/layui/css/layui.css">
    <link rel="stylesheet" href="/future/css/index.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin" id="page" v-cloak>
    <div class="layui-header">
        <div class="layui-logo">未来商城</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="">控制台</a></li>
            <li class="layui-nav-item"><a href="">商品管理</a></li>
            <li class="layui-nav-item"><a href="">用户</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">其它系统</a>
                <dl class="layui-nav-child">
                    <dd><a href="">邮件管理</a></dd>
                    <dd><a href="">消息管理</a></dd>
                    <dd><a href="">授权管理</a></dd>
                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    <text id="managername"></text>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="">退了</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul id="leftNav" class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item" ref="model" v-for="(item,i) in menuList">
                    <a :class="item.htmlpath?'layui-nav-child':'layui-nav-title'" @click="setAframe(item.htmlpath,true,i)" href="javascript:;">{{item.menuname}}</a>
                    <dl class="layui-nav-child" v-for="(menu,j) in item.mm">
                        <dd><a @click="setAframe(menu.htmlpath,false,j)" href="javascript:;">{{menu.menuname}}</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <iframe style="padding: 15px; width: 100%;height: 100%;" scrolling="false" id="framePage" :src="htmlpath"></iframe>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
    </div>
</div>

</body>
</html>

<script src="/future/util/layui/layui.js"></script>
<script src="/future/js/jquery.js"></script>
<script src="/future/vue/vue.min.js"></script>
<script src="/future/vue/vue.resource.js"></script>
<script src="/future/js/main.js"></script>
